package com.infocollect.project.grant.domain;

import com.infocollect.framework.aspectj.lang.annotation.Excel;
import com.infocollect.framework.web.domain.TreeEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 派出单位管理对象 gr_company
 *
 * @author infocollect
 * @date 2022-05-18
 */
public class GrCompany extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 单位编码 */
    @Excel(name = "单位编码")
    private String comCode;

    /** 单位名称 */
    @Excel(name = "单位名称")
    private String comName;

    /** 项目类型编号 */
    @Excel(name = "项目类型编号")
    private Long granttypeId;

    /** $column.columnComment */
    @Excel(name = "创建人")
    private String createUser;

    /** $column.columnComment */
    @Excel(name = "是否启用")
    private String isEnabled;

    /** 项目编号 */
    @Excel(name = "项目编号")
    private Long grantId;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private Integer plannedQuantity;
    /** 级别 */
    @Excel(name = "级别")
    private Integer lvl;
    /**
     * 报名人数(下级)
     */
    private Long enrollQuantity;
    /**
     * 如果是第三级，这里就是本级的报名人数
     */
    private Long enrollQuantityLvl;
    private String confirmFileurl;
    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setComCode(String comCode)
    {
        this.comCode = comCode;
    }

    public String getComCode()
    {
        return comCode;
    }
    public void setComName(String comName)
    {
        this.comName = comName;
    }

    public String getComName()
    {
        return comName;
    }
    public void setGranttypeId(Long granttypeId)
    {
        this.granttypeId = granttypeId;
    }

    public Long getGranttypeId()
    {
        return granttypeId;
    }
    public void setCreateUser(String createUser)
    {
        this.createUser = createUser;
    }

    public String getCreateUser()
    {
        return createUser;
    }
    public void setIsEnabled(String isEnabled)
    {
        this.isEnabled = isEnabled;
    }

    public String getIsEnabled()
    {
        return isEnabled;
    }
    public void setGrantId(Long grantId)
    {
        this.grantId = grantId;
    }

    public Long getGrantId()
    {
        return grantId;
    }
    public void setPlannedQuantity(Integer plannedQuantity)
    {
        this.plannedQuantity = plannedQuantity;
    }

    public Integer getPlannedQuantity()
    {
        return plannedQuantity;
    }

    public Integer getLvl() {
        return lvl;
    }

    public void setLvl(Integer lvl) {
        this.lvl = lvl;
    }

    public Long getEnrollQuantity() {
        return enrollQuantity;
    }

    public void setEnrollQuantity(Long enrollQuantity) {
        this.enrollQuantity = enrollQuantity;
    }

    public Long getEnrollQuantityLvl() {
        return enrollQuantityLvl;
    }

    public void setEnrollQuantityLvl(Long enrollQuantityLvl) {
        this.enrollQuantityLvl = enrollQuantityLvl;
    }

    public String getConfirmFileurl() {
        return confirmFileurl;
    }

    public void setConfirmFileurl(String confirmFileurl) {
        this.confirmFileurl = confirmFileurl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("comCode", getComCode())
            .append("comName", getComName())
            .append("granttypeId", getGranttypeId())
            .append("createTime", getCreateTime())
            .append("createUser", getCreateUser())
            .append("isEnabled", getIsEnabled())
            .append("parentId", getParentId())
            .append("grantId", getGrantId())
            .append("plannedQuantity", getPlannedQuantity())
            .append("lvl", getLvl())
            .append("confirmFileurl", getConfirmFileurl())
            .toString();
    }
}
